<template>
    <div class="aside-menu">
        <el-container>
            <el-aside width="150px">
                <el-menu default-active="Disclosure" @select="onSelect">
                    <el-menu-item index="Disclosure">
                        <span>技术交底</span>
                    </el-menu-item>
                    <el-menu-item index="Hazard">
                        <span>现场质量整改</span>
                    </el-menu-item>
                </el-menu>
            </el-aside>
            <el-main>
                <component :is="Hazard" v-if="value == 'Hazard'" />
            </el-main>
        </el-container>
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import Hazard from '../disclosure/hazard.vue';

const value = ref('Disclosure')
const onSelect = (data: any) => {
    value.value = data
}
</script>

<style scoped>

</style>